package com.lzhsite.technology.designPattern.decorate.AOPDemo;

public class ClientForAOPDemo
{
    public static void main(String[] args)
    {
        GoodsSaleEbi ebi = new CheckDecorator(new LogDecorator(new GoodsSaleEbo()));
        SaleModel saleModel = new SaleModel();
        saleModel.setGoods("Moto 手机");
        saleModel.setSaleNum(2);

        ebi.sale("张A", "张A丰", saleModel);
        ebi.sale("李B", "张A丰", saleModel);
    }
}
